import http from "@/utils/http";

//轮播图数据
export function getBanner(params = {}) {
    const {distributionSite = 1} = params
    return http({
        url: "/home/banner",
        params: {
            distributionSite,
        }
    });
}

//新鲜好物数据
export function getlimit() { 
    return http({
        url: "/home/new",
    });
}

//热门推荐数据
export function getHot() { 
    return http({
        url: "/home/hot",
    });
}

//产品列表数据
export function getProduct() { 
    return http({
        url: "/home/goods",
    });
}
